<?php
defined('IN_IXDCW') or exit('Access Denied');
include tpl('header');
show_menu($menus);
load('profile.js');
?>
<div class="tt">在线店修改</div>
<form method="post" action="?" id="dform">
<input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/>
<input type="hidden" name="file" value="<?php echo $file;?>"/>
<input type="hidden" name="action" value="<?php echo $action;?>"/>
<input type="hidden" name="userid" value="<?php echo $userid;?>"/>
<input type="hidden" name="username" value="<?php echo $username;?>"/>
<input type="hidden" name="gid" value="<?php echo $groupid;?>"/>
<input type="hidden" name="forward" value="<?php echo $forward;?>"/>
<div class="tt"><span class="f_hid">*</span> 在线店资料</div>
<table cellpadding="2" cellspacing="1" class="tb">
    <tr>
        <td class="tl"><span class="f_red">*</span> 公司名称</td>
        <td><input type="text" size="60" name="member[company]" id="company" value="<?php echo $company;?>" onblur="validator('company');"/>&nbsp;<a href="#vv"><img src="<?php echo $MOD['linkurl'];?>image/<?php echo $vcompany ? 'v' : 'u';?>_company.gif" width="16" height="16"
                                                                                                                                                                     title="<?php echo $vcompany ? '已通过' : '未通过';?>工商认证" align="absmiddle"/></a></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 公司类型</td>
        <td><?php echo dselect($COM_TYPE, 'member[type]', '请选择', $type, 'id="type"', 0);?>&nbsp;<span id="dtype" class="f_red"></span></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_hid">*</span> 形象图片</td>
	    <td><?php echo Post::picture($moduleid, 'thumb', 'member[thumb]', $thumb, $MOD['thumb_width'], $MOD['thumb_height']);?><br/>
		    <span class="f_gray">建议使用LOGO、办公环境等标志性图片，最佳大小为<?php echo $MOD['thumb_width'];?>px*<?php echo $MOD['thumb_height'];?>px</span></td>
    </tr>
	<tr>
		<td class="tl"><span class="f_hid">*</span> 营业执照</td>
		<td><?php echo Post::picture($moduleid, 'thumb', 'member[license]', $thumb, $MOD['thumb_width'], $MOD['thumb_height']);?></td>
	</tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 主营行业</td>
        <td>
            <div id="catesch"></div>
            <div id="cate"><?php echo ajax_category_select('', '', 0, 4, 'size="2" style="height:80px;width:160px;"');?></div>
            <input type="button" value=" 添加↓ " class="btn" onclick="addcate(<?php echo $MOD['cate_max'];?>);"/>
            <input type="button" value=" ×删除 " class="btn" onclick="delcate();"/>
			<?php if ($DT['schcate_limit']) { ?>
	            <input type="button" class="btn" value=" 搜索 " onclick="schcate(4);"/>
	        <?php } ?>
            &nbsp;最多可添加 <strong class="f_red"><?php echo $MOD['cate_max'];?></strong> 个主营行业
            <br/><select name="cates" id="cates" size="2" style="height:100px;width:380px;margin-top:5px;">
			<?php if (is_array($cates)) {
			foreach ($cates as $c) { ?>
				<?php if ($c) { ?>
                <option value="<?php echo $c;?>"><?php echo strip_tags(cat_pos(get_cat($c), '/'));?></option>
				<?php } ?>
				<?php }
			} ?>
        </select>
            <input type="hidden" name="member[catid]" value="<?php echo $catid;?>" id="catid"/><br/>
            <span id="dcatid" class="f_red"></span>
        </td>
    </tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 主要经营范围</td>
        <td><input type="text" size="80" name="member[business]" id="business" value="<?php echo $business;?>"/>&nbsp;<span id="dbusiness" class="f_red"></span></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 公司地址</td>
        <td><input type="text" size="60" name="member[address]" id="address" value="<?php echo $address;?>"/>&nbsp;<span id="daddress" class="f_red"></span></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 公司电话</td>
        <td><input type="text" size="20" name="member[telephone]" id="telephone" value="<?php echo $telephone;?>"/>&nbsp;<span id="dtelephone" class="f_red"></span></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_hid">*</span> 公司传真</td>
        <td><input type="text" size="20" name="member[fax]" id="fax" value="<?php echo $fax;?>"/></td>
    </tr>
    <tr>
        <td class="tl"><span class="f_red">*</span> 公司简介</td>
	    <td><?php echo Post::kindEditor('member[introduce]', $moduleid, $introduce, 'datatype="*5-99999" nullmsg="请填写内容" errormsg="内容最少5字"','800px'); ?></td>
    </tr>
	<tr>
		<td class="tl"><span class="f_red">*</span> 是否通过</td>
		<td>
			<input type="radio" name="member[is_store]" value="1" <?php if ($is_store){ ?> checked="checked" <?php } ?>> 是
			<input type="radio" name="member[is_store]" value="0" <?php if (!$is_store){ ?> checked="checked" <?php } ?>> 否
		</td>
	</tr>
</table>
<div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn">&nbsp;&nbsp;<input type="button" value=" 前 台 " class="btn" onclick="window.open('?moduleid=<?php echo $moduleid;?>&action=login&userid=<?php echo $userid;?>');"/>&nbsp;&nbsp;<input type="button" value=" 返 回 " class="btn" onclick="history.back(-1);"/></div>
</form>

<script type="text/javascript">Menuon(1);</script>
<?php include tpl('footer'); ?>